<template>
  <div>小儿子</div>
  <el-button @click="handleTo">给兄弟值</el-button>
</template>

<script setup name="child2">
import { ref, reactive } from 'vue'
import $bus from '@/bus'
function handleTo() {
  $bus.emit('toBrother', {son:'我是兄弟21'})
}

</script>

<style lang='scss' scoped>

</style>